package com.LostAndFound.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.LostAndFound.dao.WelcomeDao;
import com.LostAndFound.domain.SystemInfo;

public class WelcomeService {
	WelcomeDao dao = new WelcomeDao();
	
	public List<Map<String, Object>> showSystemInfo() {
		List<Map<String, Object>> mapList = null;
		try {
			mapList = dao.showSystemInfo();
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return mapList;
	}
	public SystemInfo showInfoDetail(String infoid) {
		SystemInfo systemInfo = null;
		try {
			systemInfo = dao.showInfoDetail(infoid);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return systemInfo;
	}
	public int getTotalSearchLoseToShow() {
		int total = 0;
		try {
			total = dao.getTotalSearchLoseToShow();
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return total;
	}
	public int getTotalSearchLoserToShow() {
		int total = 0;
		try {
			total = dao.getTotalSearchLoserToShow();
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return total;
	}
}
